﻿@model CPRApp.Models.BookingModel

@{
    ViewBag.Title = "Create Booking";
}

<h2>BookCreate</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>BookingModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.BookingId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BookingId)
            @Html.ValidationMessageFor(model => model.BookingId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ReceiptDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReceiptDate)
            @Html.ValidationMessageFor(model => model.ReceiptDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CustomerName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CustomerName)
            @Html.ValidationMessageFor(model => model.CustomerName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemModel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ItemModel)
            @Html.ValidationMessageFor(model => model.ItemModel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemDetails)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ItemDetails)
            @Html.ValidationMessageFor(model => model.ItemDetails)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemCondition)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ItemCondition)
            @Html.ValidationMessageFor(model => model.ItemCondition)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstimateDeliveryTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EstimateDeliveryTime)
            @Html.ValidationMessageFor(model => model.EstimateDeliveryTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstimateBillAmount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EstimateBillAmount)
            @Html.ValidationMessageFor(model => model.EstimateBillAmount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IssuesReported)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IssuesReported)
            @Html.ValidationMessageFor(model => model.IssuesReported)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsInWarrenty)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsInWarrenty)
            @Html.ValidationMessageFor(model => model.IsInWarrenty)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Technicion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Technicion)
            @Html.ValidationMessageFor(model => model.Technicion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EnteredBy)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EnteredBy)
            @Html.ValidationMessageFor(model => model.EnteredBy)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "BookList")
</div>
